"""
@name : 空气质量查询工具.py
@anthor : huyuxuan
@projectname : PycharmProjects
"""
i = 0
while i >= 0:
    air = int(input("请输入pm2.5的值："))
    if air >= 0 and air <= 50:
        print("今天的空气质量状况为优")
    elif air >= 51 and air <= 100:
        print("今天的空气质量状况为良")
    elif air >= 101 and air <= 150:
        print("今天的空气质量状况为轻度污染")
    elif air >= 151 and air <= 200:
        print("今天的空气质量状况为中度污染")
    elif air >= 201 and air <= 300:
        print("今天的空气质量状况为重度污染")
    else:
        print("今天的空气质量状况为严重污染")
    aa = input("请问是否要继续查询空气质量：")
    if aa == 'Q':
        break